# apps/tenants/models.py
from django.db import models

class Tenant(models.Model):
    """
    租户
    """
    name = models.CharField(max_length=100, verbose_name="租户名")
    code = models.CharField(max_length=50, unique=True, verbose_name="租户码")
    is_active = models.BooleanField(default=True, verbose_name="启用")

    class Meta:
        db_table = 'qb_tenants'
        verbose_name = '租户管理'
        verbose_name_plural = '租户管理'

    def __str__(self):
        return self.name